package com.zl.learning.jna;

import com.sun.jna.Library;
import com.sun.jna.Native;

public class HTCSPApi {
    public interface CLibrary extends Library {
        HTCSPApi.CLibrary INSTANCE = Native.loadLibrary(("D:\\workspace\\JavaNotes\\jna\\lib\\CopLockKeyWapper.dll"), HTCSPApi.CLibrary.class);

        boolean GetUSBKeyList(String pszReaderName, Long pdwReaderNameLen, Long pdwReaderNum);
    }

    public static void main(String[] args) {
        String  stringBuilder = new String();
        boolean success = HTCSPApi.CLibrary.INSTANCE.GetUSBKeyList(stringBuilder, 1L, 0L);
        System.out.println(success);
        System.out.println(stringBuilder.toString());
    }
}
